{% extends "popboard/base_forum.html" %}

{% block title %}

{% endblock %}

{% block popboard_top %}
<div class="crumbs">
<a href="{% url popboard-index %}">Forums</a> <span class="arrow">→</span>
</div>
<h1>{{ category.name }}</h1>
<p class="subtitle">
  <a href="{% url popboard-feed "category" %}{{ category.id }}/"><img width="14" height="14" src="{{ MEDIA_URL }}{{ POPBOARD_MEDIA_PREFIX }}images/feed-icon.png" alt="Subscribe to {{ category.name }}"/></a> 
  {{ category.thread_count }} topic(s), 
  {{ category.post_count }} post(s)
</p>
{% endblock %}

{% block popboard_main %}
      <table class="wide forums" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <th class="la" colspan="1">Topic</th>
      <th width="1%">Posts</th>
      <th width="1%">Views</th>
      <th class="la" colspan="1">Last Post</th>
    </tr>
    {% if page_obj.object_list %}
        {% for thread in page_obj.object_list %}
            {% include "popboard/includes/thread.html" %}
      {% endfor %}
      {% else %}
              <tr>
                  <td colspan="4">No threads are available.</td>
              </tr>
        {% endif %}
          </tbody></table>
      {% if thread_page %}
          {% include "popboard/includes/pagination.html" %}
      {% endif %}
          
      {% if category %}
        <p><a class="utility" href="{% url popboard-new-thread cat_id=category.id %}">New Thread</a></p>
      {% endif %}
{% endblock %}




   {% block sidebar %}
   <p>{{ category.description }}</p>
   <hr />
   
   <h5>Moderators</h5>
   {% if category.moderators %}
        <p>{{ category.moderators }}</p>
   {% else %}
        <p>This forum is currently unmoderated.</p>
   {% endif %}

   <p>Please always be courteous.</p>
     {{ block.super }}

   {% endblock %}